package com.shuai.jit.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuai.jit.entity.course.Comment;
import com.shuai.jit.entity.vo.VoComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author joker
 * @since 2021-01-21
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {



    @Select("SELECT * FROM comment left join user on user_id=id where comment_pid=#{pid} ")
    List<VoComment> selectComment(String pid);
}
